package com.nine.news.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2023-03-18 14:05:10
 */
@Data
@NoArgsConstructor
@TableName("t_user_logon")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String phone;

    private String password;

    private Integer flag;

    private Date createTime;

    private Date updateTime;

    private Integer isVerify;

    public void init(){
        flag=1;
        createTime=new Date();
        updateTime=new Date();
    }

    public User(String password,Integer id) {
        this.password = password;
        this.id = id;
    }

}

